/*
 * @Author: your name
 * @Date: 2020-12-05 11:51:22
 * @LastEditTime: 2021-01-23 23:28:13
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \microtransaction-frontend\user\src\filter\index.js
 */
import Vue from 'vue'
const filters = {}

/* 交易类型 */
filters.pageType = function (value) {
    return ({
        1: '抖音',
        2: '头条',
    }[value] || '其他')
}

const filtersFun = function (Vue) {
    for (const i in filters) {
        Vue.filter(i, filters[i])
    }
}

filtersFun(Vue)